package com.mengxin.secondkill.message.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author mengxin
 * @date 2020/12/11 17:47
 */
@Data
public class BuyGoodsReq {

    @NotNull
    @ApiModelProperty(value="商品ID")
    private Long goodsId;
    @NotNull
    @ApiModelProperty(value="ModelID")
    private Long modelId;
    @NotNull
    @ApiModelProperty(value="价格")
    private Long price;
    @Min(value = 1)
    @ApiModelProperty(value="购买数量")
    private Long sum;

}
